﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KTWpm.Clinic.Domain.ValueObjects;

public record PatientId
{
    public Guid Value { get; init; }

    public PatientId(Guid value)
    {
        if (value == Guid.Empty)
        {
            throw new ArgumentException("PatientId cannot be empty.", nameof(value));
        }
        Value = value;
    }

    public static implicit operator PatientId(Guid value)
    {
        return new PatientId(value);
    }


}
